<?php /* Smarty version Smarty-3.1.18, created on 2017-02-20 17:10:10
         compiled from "Finance/views/user/duobao.html" */ ?>
<?php /*%%SmartyHeaderCode:21456613058aab272379c56-89207740%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '52c87808d6a0288763ad8eacc286ccff103fec44' => 
    array (
      0 => 'Finance/views/user/duobao.html',
      1 => 1487574483,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '21456613058aab272379c56-89207740',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'type' => 0,
    'list' => 0,
    'val' => 0,
    'style_dir' => 0,
    'showPage' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_58aab2723e1744_15206779',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58aab2723e1744_15206779')) {function content_58aab2723e1744_15206779($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("public/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 
<script src="/static/public/jquery.pagination.js" type="text/javascript" charset="utf-8"></script>
		<!--main部分-->
		<div class="x-main-upper w1180-con">
			<!--main--左边--logo/tab-->
			<?php echo $_smarty_tpl->getSubTemplate ("public/user_nav.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 
				<!--main--右边--banner-->
				<div class="main-right">
					<div class="mright-content">
						<!--头像、昵称、等级-->
						<?php echo $_smarty_tpl->getSubTemplate ("public/user_top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 			
						<div class="clear"></div>
						<!--夺宝记录-->
						<div class="cash66">
							<div class="title">
								<div class="vertical"></div>
								<p class="title66">参与记录</p>
								<!--日期选择-->
							</div>
							<div class="user-con fl">
								<div class="acc-duobao overhide bjf">
									<div class="p15">
										<ol class="acc-tab">
                                                                                    <li <?php if ($_smarty_tpl->tpl_vars['type']->value==1) {?>class="tab_on"<?php }?>><a href="<?php $_template = new Smarty_Internal_Template('eval:'.url('user/duobao'), $_smarty_tpl->smarty, $_smarty_tpl);echo $_template->fetch(); ?>">参与中<i></i><b></b></a></li>
                                                                                    <li <?php if ($_smarty_tpl->tpl_vars['type']->value==2) {?>class="tab_on"<?php }?>><a href="<?php $_template = new Smarty_Internal_Template('eval:'.url('user/publish'), $_smarty_tpl->smarty, $_smarty_tpl);echo $_template->fetch(); ?>">已揭晓<i></i><b></b></a></li>
                                                                                    <li <?php if ($_smarty_tpl->tpl_vars['type']->value==3) {?>class="tab_on"<?php }?>><a href="<?php $_template = new Smarty_Internal_Template('eval:'.url('user/winner'), $_smarty_tpl->smarty, $_smarty_tpl);echo $_template->fetch(); ?>">中奖记录<i></i><b></b></a></li>
                                                                                    <div class="clear"></div>
										</ol>
									  <div class="tab_contain">
										<div class="acc-list">
											<!--夺宝中-->
                                                                                    <?php if ($_smarty_tpl->tpl_vars['list']->value) {?>
                                                                                    <table class="indianaed">
                                                                                            <tr>
                                                                                                    <th class="tl">&nbsp;&nbsp;&nbsp;&nbsp;商品信息</th>
                                                                                                    <th>期号</th>
                                                                                                    <th>参与人次</th>
                                                                                                    <th>夺宝状态</th>
                                                                                                    <th>操作</th>
                                                                                            </tr>
                                                                                            <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
                                                                                            <tr>
                                                                                                    <td class="min-w345">
                                                                                                        <img src="<?php echo $_smarty_tpl->tpl_vars['val']->value['thumb'];?>
" />
                                                                                                        <div class="duobao-goods">
                                                                                                            <h5><?php echo $_smarty_tpl->tpl_vars['val']->value['title'];?>
</h5>
                                                                                                            <span>总需：<span><?php echo $_smarty_tpl->tpl_vars['val']->value['zongrenshu'];?>
</span>人次</span>
                                                                                                            <div class="loadbox mt5 mb5" >
                                                                                                                <dl class="barbox mt5">
                                                                                                                    <dd class="barline">
                                                                                                                        <div data-current="<?php echo $_smarty_tpl->tpl_vars['val']->value['canyurenshu'];?>
" data-total="<?php echo $_smarty_tpl->tpl_vars['val']->value['zongrenshu'];?>
" style="width:100%;" class="charts"></div>
                                                                                                                    </dd>
                                                                                                                </dl>
                                                                                                            </div>
                                                                                                            <?php if ($_smarty_tpl->tpl_vars['val']->value['q_showtime']=="Y") {?>
                                                                                                            <span class="publish-time">幸运伙伴揭晓中...</span>
                                                                                                            <?php } else { ?>
                                                                                                            <span class="publish-time">已完成<span><?php echo $_smarty_tpl->tpl_vars['val']->value['percent'];?>
</span>，剩余<span><?php echo $_smarty_tpl->tpl_vars['val']->value['shengyurenshu'];?>
</span></span>
                                                                                                            <?php }?>
                                                                                                        </div>
                                                                                                        <div class="clear"></div>
                                                                                                    </td>
                                                                                                    <td>第<?php echo $_smarty_tpl->tpl_vars['val']->value['shopqishu'];?>
期</td>
                                                                                                    <td><?php echo $_smarty_tpl->tpl_vars['val']->value['user_canyurenshu'];?>
</td>
                                                                                                    <td class="green">进行中</td>
                                                                                                    <td>
                                                                                                        <a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['lottery_url'];?>
" target="_blank" class="see-detail duobao-btn btn-hover">查看详情</a><br />
                                                                                                        <em class="font-blue see-code" data-sid="<?php echo $_smarty_tpl->tpl_vars['val']->value['shopid'];?>
">查看幸运号</em>
                                                                                                    </td>
                                                                                            </tr>
                                                                                            <?php } ?>
											</table>
                                                                                        <?php } else { ?>
											<div class="load-more mtb20">
												<img src="<?php echo $_smarty_tpl->tpl_vars['style_dir']->value;?>
/img/no-trade.png" />
											</div>
                                                                                        <?php }?>
										</div>
                                                                              <div class="mt15 tc">
                                                                                  <?php echo $_smarty_tpl->tpl_vars['showPage']->value;?>

                                                                              </div>
									  </div>
									</div>
								</div>
							</div>						
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
                <?php echo $_smarty_tpl->getSubTemplate ("user/code_pop.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<!--footer-->
<?php echo $_smarty_tpl->getSubTemplate ("public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<script language="javascript">
	$(function(){
		var charts = $(".charts");
		function animate(){
			charts.each(function(i,item){
                                var f=parseFloat($(item).attr("data-current"));
				var a=((f/$(item).attr("data-total")).toFixed(2))*100;
				$(item).animate({
					width: a+"%"
				},1000);
			});
		}
		animate();
	})

	</script><?php }} ?>
